﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo
{
    class Fruit1
    {
        public void fruit (Fruit fruit)
        {
            int score = (int)fruit;
            Console.WriteLine(score);
            ///* switch (fruit)
            // {
            //     case Fruit.哈密瓜:
            //         Fruit f = Fruit.哈密瓜;
            //         int f1 = (int)f;
            //         Console.WriteLine(f + " " + f1);
            //         break;

            // }*/
            ///*switch (fruit)
            //{
            //    case Fruit.香蕉:
            //        Fruit a = Fruit.香蕉;
            //        int a1 = (int)a;
            //        Console.WriteLine(a+" "+a1);
            //        break;
            //    case Fruit.苹果:
            //        Fruit b = Fruit.苹果;
            //        int b1 = (int )b;
            //        Console.WriteLine(b+" "+b1);
            //        break;
            //    case Fruit.西瓜:
            //        Fruit c = Fruit.西瓜;
            //        int c1 = (int)c;
            //        Console.WriteLine(c + " " + c1);
            //        break;
            //    case Fruit.草莓:
            //        Fruit d = Fruit.草莓;
            //        int d1 = (int)d;
            //        Console.WriteLine(d + " " + d1);
            //        break;
            //    case Fruit.葡萄:
            //        Fruit e = Fruit.苹果;
            //        int e1 = (int)e;
            //        Console.WriteLine(b + " " + b1);
            //        break;
            //    case Fruit.哈密瓜:
            //        Fruit b = Fruit.苹果;
            //        int b1 = (int)b;
            //        Console.WriteLine(b + " " + b1);
            //        break;
            //    case Fruit.奇异果:
            //        Fruit b = Fruit.苹果;
            //        int b1 = (int)b;
            //        Console.WriteLine(b + " " + b1);
            //        break;
            //    default:
            //        break;
            //}*/
            ///*Fruit f = Fruit.哈密瓜;
            //int f1 = (int)f;
            //Console.WriteLine(f+" "+f1);*/
            //Fruit q = Fruit.奇异果;
            //int q1 = (int)q;
            //Console.WriteLine(q + " " + q1);
            //Fruit e = Fruit.苹果;
            //int e1 = (int)e;
            //Console.WriteLine(e + " " + e1);
            //Fruit r = Fruit.草莓;
            //int r1 = (int)r;
            //Console.WriteLine(r + " " + r1);
            //Fruit t = Fruit.葡萄;
            //int t1 = (int)t;
            //Console.WriteLine(t + " " + t1);
            //Fruit y = Fruit.西瓜;
            //int y1 = (int)y;
            //Console.WriteLine(y + " " + y1);
            //Fruit u = Fruit.香蕉;
            //int u1 = (int)u;
            //Console.WriteLine(u + " " + u1);

        }

    }
}
